﻿using System;
using System.IO;
using System.Threading;

namespace UpdateTableMarkets
{
	internal class LogMarkets
	{

		/// <summary>
		/// Cela va écrire le message dans un fichier.
		/// </summary>
		/// <param name="message"></param>
		internal static void LogMoiCa(string message)
		{
			const string PATH = @"C:\EveProd\Log\log.txt";

			if(!Directory.Exists(@"C:\EveProd\Log"))
				Directory.CreateDirectory(@"C:\EveProd\Log");

			File.AppendAllText(PATH,DateTime.Now.ToString() + message + "\r\n");
			Thread.Sleep(2);
		}

	}
}
